using System;
using System.Diagnostics;

public static class Debugger
{
    [Conditional("OPEN_LOG")]
    public static void Log(object message)
    {
        UnityEngine.Debug.Log(message);
    }

    [Conditional("OPEN_LOG")]
    public static void Error(string message)
    {
        UnityEngine.Debug.LogError(message);
    }

    [Conditional("OPEN_LOG")]
    public static void Warn(string message)
    {
        UnityEngine.Debug.LogWarning(message);
    }

    [Conditional("OPEN_LOG")]
    public static void Exception(Exception message)
    {
        UnityEngine.Debug.LogException(message);
    }

    [Conditional("OPEN_LOG")]
    public static void Logf(string format, params object[] message)
    {
        UnityEngine.Debug.LogFormat(format, message);
    }

    [Conditional("OPEN_LOG")]
    public static void Errorf(string format, params object[] message)
    {
        UnityEngine.Debug.LogErrorFormat(format, message);
    }

    [Conditional("OPEN_LOG")]
    public static void Warnf(string format, params object[] message)
    {
        UnityEngine.Debug.LogWarningFormat(format, message);
    }
}
